using System;
using System.Web;
using System.Web.Mvc;
using WASM.WebSite.Logic;

namespace WASM.WebSite.Controllers
{
	public class SharedController : Controller
	{
		public ActionResult Error(string id)
		{
			string errroMessage;
			if (String.IsNullOrEmpty(id))
				errroMessage = "No error information is available.";
			else
				errroMessage = String.Format("An error has occurred. Error ID = [{0}].", id);

			ViewData["ErrorMeaage"] = errroMessage;
			return View();
		}
	}
}
